package com.lh.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author YMS
 * @date 2021/6/22
 */
@FeignClient("service-edu")
@Component
public interface CourseFeign {

    @ApiOperation("每天课程浏览量")
    @GetMapping("/eduservice/edu-course/countCourse/{day}")
    public Integer countCourse(@PathVariable("day") String day);

}
